package com.website.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable;

public class Yaopin extends Model<Yaopin> {
    private static final long serialVersionUID = 1L;
    @TableId(value="id", type= IdType.AUTO)
    private int id;
    @TableId(value="nname")
    private String name;
    @TableId(value="aaction")
    private String action;
    @TableId(value="buy_time")
    private String buytime;
    @TableId(value="sell_time")
    private String selltime;
    @TableId(value="sstock")
    private  Integer stock;
    @TableId(value="type_id")
    private Integer typeId;

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    @Override
    public String toString() {
        return "Yaopin{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", action='" + action + '\'' +
                ", buytime='" + buytime + '\'' +
                ", selltime='" + selltime + '\'' +
                ", stock=" + stock +
                '}';
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public void setBuytime(String buytime) {
        this.buytime = buytime;
    }

    public void setSelltime(String selltime) {
        this.selltime = selltime;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getAction() {
        return action;
    }

    public String getBuytime() {
        return buytime;
    }

    public String getSelltime() {
        return selltime;
    }

    public int getStock() {
        return stock;
    }
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
